package com.ltmall.api.dao;

import com.ltmall.api.bean.DirectorPrivilegeOrder;
import com.ltmall.api.bean.ThSubUnderwritingIncomes;

public interface IDirectorPrivilegeOrderDAO {

	public int countPurchasedTimes(int packageId, int userId);
	
	public boolean save(DirectorPrivilegeOrder directorPrivilegeOrder);
	
	public DirectorPrivilegeOrder getByTradeNo(String tradeNo);
	
	public boolean saveThSubUnderwritingIncomes(ThSubUnderwritingIncomes income);
	
	public boolean addSubUnderwriterTotalIncome(int underwriterId, double amount);
}
